{hkcms:admintemplate file="common/Head"}
<body class="J_scroll_fixed">
    <div class="wrap J_check_wrap">
        {hkcms:admintemplate file="common/Nav"}
        <div class="table_full">
            <form method='post'   id="myform" class="J_ajaxForm"  action="{:url('Config/addition')}">
                <div class="h_a">应用中心帐号</div>
                <table cellpadding=0 cellspacing=0 width="100%" class="table_form" >
                    <tr>
                        <th width="140">帐号:</th>
                        <td><input type="text" class="input"  name="cloud_username" value="{php}if(isset($addition['cloud_username'])){echo $addition['cloud_username'];}{/php}" size="40">
                        <span class="gray"> http://www.hkcms.cn 会员帐号</span></td>
                    </tr>
                    <tr>
                        <th width="140">密码:</th>
                        <td><input type="password" class="input"  name="cloud_password" value="{php}if(isset($addition['cloud_password'])){echo $addition['cloud_password'];}{/php}" size="40">
                        <span class="gray"> http://www.hkcms.cn 会员密码</span></td>
                    </tr>
                </table>
                <div class="h_a">Cookie配置</div>
                <table cellpadding=0 cellspacing=0 width="100%" class="table_form" >
                    <tr>
                        <th width="140">Cookie有效期:</th>
                        <td><input type="text" class="input"  name="cookie[expire]" value="{$addition.cookie.expire}" size="40">
                            <span class="gray"> 单位秒</span></td>
                    </tr>
                    <tr>
                        <th width="140">Cookie有效域名:</th>
                        <td><input type="text" class="input"  name="cookie[domain]" value="{$addition.cookie.domain}" size="40">
                            <span class="gray"> 例如：“.abc3210.com”表示这个域名下都可以访问</span></td>
                    </tr>
                    <tr>
                        <th width="140">Cookie路径:</th>
                        <td><input type="text" class="input"  name="cookie[path]" value="{$addition.cookie.path}" size="40">
                            <span class="gray"> 一般是“/”</span></td>
                    </tr>
                </table>
                <div class="h_a">Session配置</div>
                <table cellpadding=0 cellspacing=0 width="100%" class="table_form" >
                    <tr>
                        <th width="140">Session前缀:</th>
                        <td><input type="text" class="input"  name="session[prefix]" value="{$addition.session.prefix}" size="40">
                            <span class="gray">一般为空即可</span></td>
                    </tr>
                    <tr>
                        <th width="140">Session域名:</th>
                        <td><input type="text" class="input"  name="session[domain]" value="{php}
                        	if(isset($addition['session']['domain'])){
                        		echo $addition['session']['domain'];
                        	}{/php}" size="40">
                            <span class="gray"> 一般是“.abc3210.com”</span></td>
                    </tr>
                </table>
                <div class="h_a">错误设置</div>
                <table cellpadding=0 cellspacing=0 width="100%" class="table_form" >
                    <tr>
                        <th width="140">显示错误信息:</th>
                        <td><input name="show_error_msg" type="radio" value="1" {if condition=" $addition['show_error_msg'] "}checked{/if}> 开启 <input name="show_error_msg" type="radio" value="0" {if condition=" !$addition['show_error_msg'] "}checked{/if}> 关闭</td>
                    </tr>
                    <tr>
                        <th width="140">错误显示信息:</th>
                        <td><input type="text" class="input"  name="error_message" value="{$addition.error_message}" size="40"></td>
                    </tr>
<!--                    <tr>-->
<!--                        <th width="140">错误定向页面:</th>-->
<!--                        <td><input type="text" class="input"  name="ERROR_PAGE" value="{$addition.exception_tmpl}" size="40">-->
<!--                            <span class="gray">例如：http://www.abc3210.com/error.html</span></td>-->
<!--                    </tr>-->
                </table>
                <div class="h_a">URL设置</div>
                <table cellpadding=0 cellspacing=0 width="100%" class="table_form" >

                    <tr>
                        <th width="140">PATHINFO模式参数分割线:</th>
                        <td><input type="text" class="input"  name="pathinfo_depr" value="{$addition.pathinfo_depr}" size="40">
                            <span class="gray"> 例如：“/”</span></td>
                    </tr>
                  <tr>
                        <th width="140">URL伪静态后缀:</th>
                        <td><input type="text" class="input"  name="url_html_suffix" value="{$addition.url_html_suffix}" size="40">
                            <span class="gray"> 例如：“.html”</span></td>
                    </tr>
                </table>
                <div class="h_a">分页配置</div>
                <table cellpadding=0 cellspacing=0 width="100%" class="table_form" >
                    <tr>
                        <th width="140">默认分页数:</th>
                        <td><input type="text" class="input"  name="paginate[list_rows]" value="{$addition.paginate.list_rows}" size="40">
                            <span class="gray"> 默认20！</span></td>
                    </tr>
                    <tr>
                        <th width="140">分页变量:</th>
                        <td><input type="text" class="input"  name="paginate[var_page]" value="{$addition.paginate.var_page}" size="40">
                            <span class="gray"> 默认：page，建议不修改</span></td>
                    </tr>
                </table>
                <div class="h_a">杂项配置</div>
                <table cellpadding=0 cellspacing=0 width="100%" class="table_form" >
                    <tr>
                        <th width="140">默认分页模板:</th>
                        <td>
                            <textarea name="page_template" style="width:500px;">{$addition.page_template}</textarea>
                            <br/>
                            <span class="gray"> 当没有设置分页模板时，默认使用该项设置</span></td>
                    </tr>
                    <tr>
                        <th width="140">默认模块:</th>
                        <td><input type="text" class="input"  name="default_module" value="{$addition.default_module}" size="40">
                            <span class="gray"> 默认：Content，建议不修改，填写时注意大小写</span></td>
                    </tr>
                    <tr>
                        <th width="140">默认时区:</th>
                        <td><input type="text" class="input"  name="default_timezone" value="{$addition.default_timezone}" size="40"></td>
                    </tr>
                    <tr>
                        <th width="140">AJAX 数据返回格式:</th>
                        <td><input type="text" class="input"  name="default_ajax_return" value="{$addition.default_ajax_return}" size="40">
                            <span class="gray"> 默认AJAX 数据返回格式,可选json xml ...</span></td>
                    </tr>
                    <tr>
                        <th width="140">默认参数过滤方法:</th>
                        <td><input type="text" class="input"  name="default_filter" value="{$addition.default_filter}" size="40">
                            <span class="gray"> 默认参数过滤方法</span></td>
                    </tr>
                    <tr>
                        <th width="140">默认语言:</th>
                        <td><input type="text" class="input"  name="default_lang" value="{$addition.default_lang}" size="40">
                            <span class="gray">默认语言</span></td>
                    </tr>
<!--                    <tr>-->
<!--                        <th width="140">数据缓存类型:</th>-->
<!--                        <td><select name="DATA_CACHE_TYPE" id="DATA_CACHE_TYPE" >-->
<!--                                <option value="File" {//if condition="$addition['DATA_CACHE_TYPE'] eq 'File' "} selected{/if}>File</option>-->
<!--                                <option value="Memcache" {//if condition="$addition['DATA_CACHE_TYPE'] eq 'Memcache' "} selected{/if}>Memcache</option>-->
<!--								<option value="Redis" {//if condition="$addition['DATA_CACHE_TYPE'] eq 'Redis' "} selected{/if}>Redis</option>-->
<!--								<option value="Xcache" {//if condition="$addition['DATA_CACHE_TYPE'] eq 'Xcache' "} selected{/if}>Xcache</option>-->
<!--                            </select>-->
<!--                            <span class="gray">数据缓存类型,支持:File</span></td>-->
<!--                    </tr>-->
<!--                    <tr>-->
<!--                        <th width="140">子目录缓存:</th>-->
<!--                        <td><input name="DATA_CACHE_SUBDIR" type="radio" value="1" {//if condition=" $addition['DATA_CACHE_SUBDIR'] "}checked{/if}> 是 <input name="DATA_CACHE_SUBDIR" type="radio" value="0" {//if condition=" !$addition['DATA_CACHE_SUBDIR'] "}checked{/if}> 否-->
<!--                    <span class="gray">使用子目录缓存 (自动根据缓存标识的哈希创建子目录)</span></td>-->
<!--                    </tr>-->
<!--                    <tr>-->
<!--                        <th width="140">函数加载:</th>-->
<!--                        <td><input type="text" class="input"  name="LOAD_EXT_FILE" value="{//$addition.LOAD_EXT_FILE}" size="40">-->
<!--                            <span class="gray">加载hkcms/common/目录下的扩展函数，扩展函数建议添加到extend.php。多个用逗号间隔。</span></td>-->
<!--                    </tr>-->
                </table>
                <div class="btn_wrap">
                    <div class="btn_wrap_pd">
                        <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <script src="{$config_siteurl}statics/js/common.js?v"></script> 
    <script type="text/javascript">
        function generates(genid) {
            //生成静态
            if (genid == 1) {
                $("#index_ruleid_1").show();
                $("#index_ruleid_1 select").attr("disabled", false);
                $("#index_ruleid_0").hide();
                $("#index_ruleid_0 select").attr("disabled", "disabled");
            } else {
                $("#index_ruleid_0").show();
                $("#index_ruleid_0 select").attr("disabled", false);
                $("#index_ruleid_1").hide();
                $("#index_ruleid_1 select").attr("disabled", "disabled");
            }
        }
    </script>
</body>
</html>